home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2913 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help with simple code
  5. Date: Wed, 24 Jan 1996 23:01:02 GMT
  6. Organization: Netcom
  7. Message-ID: <3106b9b0.5366272@nntp.ix.netcom.com>
  8. References: <4dbak5$oij@ionews.io.org> <00001a80+00007168@msn.com>
  9. NNTP-Posting-Host: ix-dc8-16.ix.netcom.com
  10. X-NETCOM-Date: Wed Jan 24  3:01:07 PM PST 1996
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. Vtrap@msn.com (Ronald Bennett) wrote:
  14.  
  15. > I think that your function 'pow' would have to be defined prior to 
  16. > your main function since it is not defined in the two standard 
  17. > libraries that were included in your program.  Try writing a function 
  18. > called 'pow'.  In that function you will have to write to formula you 
  19. > want to use in your main function.  This will define the function 
  20. > 'pow'.  Otherwise, 'pow' will be treated as a varible and therefore 
  21. > would have to be declared in the main fuction.  I hope this answers 
  22. > your question. 
  23.  
  24. Why do you think that?  pow is a standard library function that is
  25. declared in <math.h>.
  26.  
  27.  
  28. Michael M Rubenstein
  29.